package com.clg.common.config;

import com.clg.dataSource.DataSourceController;
import com.clg.home.HomeController;
import com.clg.user.LoginController;
import com.jfinal.config.Routes;

/**
 * 自定义路由配置
 * Created by usercai on 2016/9/27.
 */
public class AppRoute extends Routes{
    //BaseViewPath("/WEB-INF/views");
    //realPath:  basePath + url/viewPath + renderPath(不能以/开始)
    @Override
    public void config() {
        add("/login", LoginController.class,"/");//登录
        add("/home", HomeController.class,"/");//首页

        dataSource();
    }

    //数据源
    private void dataSource() {
        add("/dataSource", DataSourceController.class,"/");
    }

}
